<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/3/13
  Time: 17:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="ctx" value="<%=basePath%>"  />
<html>
<html>
<head>
    <meta charset="UTF-8">
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrapValidator.min.css"  rel="stylesheet"/>
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script  src="/static/bootstrap/js/bootstrapValidator.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
    <script src="/static/js/admin/login.js"></script>
    <title></title>
    <style type="text/css">
        img{
            width: 34px;
            height: 34px;
        }
        .navbar{
            background-color: #DEB887;
        }
        .form-horizontal .control-label{
            padding-top: 0px;
        }
    </style>
    <script type="text/javascript">
        var ctx= '${ctx}';
        var type='${type}';
        console.info("桃子大水阿比"+ctx+"----type"+type)
    </script>
</head>
<body>
<nav class="navbar" role="navigation">
    <%-- <div role="navigation"></div>，把div元素转换为navigation导航功能使用；--%>
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="home">
                <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
            </a>
            <span class="navbar-brand">欢迎登录后台管理系统</span>
        </div>
        <%--<div class="collapse navbar-collapse" id="index">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href=${ctx}admin/index>首页</a>
                </li>
            </ul>
        </div>--%>
    </div>
</nav>
<form class="form-horizontal center-block" id="login" role="form"  <%--action="alogined" method="post"--%>>

    <div class="form-group ">
        <label class="col-md-4 control-label"><img src="/static/img/register/user.png" />用户:</label>
        <div class="col-md-4">
            <input class="form-control" id="arealname"  name="arealname" type="text" placeholder="用户名"  autocomplete="off" />
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-4 control-label"><img src="/static/img/register/password.png" />密码:</label>
        <div class="col-md-4">
            <input class="form-control" id="apassword" name="apassword"  type="password" placeholder="请输入密码" autocomplete="off" />
        </div>
    </div>

    <div class="form-group" id="alogin">
        <label class="col-sm-2 control-label "> </label>
        <div class="col-sm-4">
            <input class="btn btn-default pull-right" type="button" id="btn-test" value="登录" />
        </div>
    </div>

</form>
</body>
</html>
